all:server client

server:server.o
	gcc $^ -o $@
client:client.o
	gcc $^ -o $@
%.o:%.c
	gcc -c $^ -o $@
clean:
	rm server.o client.o server client
